<%@ page language="java" import="java.util.*"
	contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://www.rapid-framework.org.cn/rapid" prefix="rapid"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<rapid:override name="frame-content">
	<div style="padding: 15px;">
		<blockquote class="layui-elem-quote">
			<span class="layui-breadcrumb" lay-separator="/"> <a
				href="user/index">首页</a> <a><cite>链接列表</cite></a>
			</span>
		</blockquote>

		<table class="layui-table">
			<colgroup>
				<col width="100">
				<col width=50">
				<col width="100">
				<col width="100">
				<col width="50">
				<col width="50">
				<col width="100">
				<col width="50">
			</colgroup>
			<thead>
				<tr>
					<th>名称</th>
					<th>URL</th>
					<th>联系方式</th>
					<th>创建时间</th>
					<th>Order</th>
					<th>状态</th>
					<th>操作</th>
					<th>ID</th>
				</tr>
			</thead>
			<tbody>
				<c:forEach var="link" items="${linkList }">
				<tr>
					<td>${link.linkName }</td>
					<td><a href="${link.linkUrl }" target="_blank">${link.linkUrl }</a>
					</td>
					<td>${link.linkOwnerContact }</td>
					<td><fmt:formatDate value="${link.linkUpdateTime }" pattern="yyyy-MM-dd"/> </td>
					<td>${link.linkOrder }</td>
					<td>显示</td>
					<td><a href="link/edit/${link.linkId }"
						class="layui-btn layui-btn-mini">编辑</a> <a
						href="link/delete/${link.linkId }"
						class="layui-btn layui-btn-danger layui-btn-mini"
						onclick="return confirmDelete()">删除</a></td>
					<td>${link.linkId }</td>
				</tr>
				</c:forEach>
			
			</tbody>
		</table>
	</div>
</rapid:override>
<%@ include file="../framework.jsp"%>